setTieHiLoMode -reset
setTieHiLoMode -cell "$TIE_HIGH_CELL $TIE_LOW_CELL" -maxFanout 8 -maxDistance 30

#delete existing Tie cells
deleteTieHiLo

setDontUse $TIE_HIGH_CELL false
setDontUse $TIE_LOW_CELL false

set tieh_num [llength [dbGet top.insts.instTerms.isTieHi 1 -e]]
set tiel_num [llength [dbGet top.insts.instTerms.isTieLo 1 -e]]

puts "INFO: total $tieh_num cells need tie high cells"
puts "INFO: total $tiel_num cells need tie low cells"
puts "INFO: add tie cells..."

addTieHiLo -matchingPDs true -prefix TIE

setDontUse $TIE_HIGH_CELL true
setDontUse $TIE_LOW_CELL true



